<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
<script>
	let arr = ['1','5',"10","20"];
	console.log(arr);
	let array =new Array();
	for (let i = 0; i < arr.length; i++) {
		array.push(parseInt(arr[i]));

	}
	console.log(array);

	// let array1 = arr.map(function (items) {
	// 	return parseInt(items);
	//
	//
	// })
	let array1 = arr.map(items=>parseInt(items));
	console.log(array1)
</script>
</body>
</html>